package org.mat.framework.core.context;

/**
 * @ClassName: RequestContextConstants
 * @Date: 2021/8/17
 * @author: sunxinhe
 * @Version: 1.0
 * @Description: TODO
 */
public interface RequestContextConstants {

    /**
     * 统一前缀
     */
    String PREFIX = "x-mat-";


    /**
     * traceId key（用于SLF4J MDC）
     */
    String TRACE_ID_KEY_FOR_MDC = "trace-id";

    /**
     * traceId key（用于HTTP请求（响应）头信息）
     */
    String TRACE_ID_KEY_FOR_HTTP_HEADER = PREFIX + TRACE_ID_KEY_FOR_MDC;

    String DEBUG_ENABLED_KEY = "debug-enabled";

    String DEBUG_ENABLED_KEY_FOR_HTTP_HEADER = PREFIX + DEBUG_ENABLED_KEY;

    String START_TIME_KEY = "start-time";

    String START_TIME_KEY_FOR_HTTP_HEADER = PREFIX + START_TIME_KEY;


}
